<?php
namespace app\common\controller;


use think\Controller;
use View;
use Db;
use Session;
use app\common\model\Menu;


class BaseController extends Controller
{

    public function __construct()
    {
        parent::__construct();

        $menu = new Menu();
        $menuDatas = $menu->getMenuRecursion();

        // 赋值全局模板变量
        View::share('menuDatas',$menuDatas);

    }


}